package rpc

import (
	"log"
	"net/rpc"
	"net/rpc/jsonrpc"
)

var Client *rpc.Client

func init() {

}

func InitRpcClient()  {
	thisClient, err := jsonrpc.Dial("tcp", "localhost:8888")
	if err != nil {
		log.Fatal("dialing:", err)
	}
	Client = thisClient
}

